import request from '@/utils/request'

export function postTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/system/post/table`,
    method: 'post',
    data: query
  })
}

export function postSelectData() {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/system/post/select`,
    method: 'post'
  })
}

export function postLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/system/post/load`,
    method: 'get',
    params: query
  })
}

export function postSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/system/post/save`,
    method: 'post',
    data: query
  })
}

export function postDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/system/post/delete`,
    method: 'post',
    data: query
  })
}
